<?php
class Form_RegisterEmployee extends Zend_Form
{
	public function init()
	{

		$this->setAction('success');
		$this->setMethod('post');
		$this->setDescription("Register Form");
		$this->setAttrib('sitename', 'Foodies');
			
		$this->addElement('text', 'username');
		$usernameElement = $this->getElement('username');
		$usernameElement->setLabel('Username:');
			
		$this->addElement('text', 'email');
		$emailElement = $this->getElement('email');
		$emailElement->setLabel('Email:');
			
		$this->addElement('password', 'password');
		$passwordElement = $this->getElement('password');
		$passwordElement->setLabel('Password:');
			
		$this->addElement('text', 'firstname');
		$firstnameElement = $this->getElement('firstname');
		$firstnameElement->setLabel('First Name:');
			
		$this->addElement('text', 'lastname');
		$lastnameElement = $this->getElement('lastname');
		$lastnameElement->setLabel('Last Name:');

		$items = new Zend_Form_Element_Select('gender');
		$items->setLabel('Gender')
		->setRequired(true)
		->addValidator('NotEmpty',true, array('integer','zero'));
		$items->addMultiOption('nam',"nam");
		$items->addMultiOption('nu',"nu");

		$this->addElement($items);


		$this->addElement('text', 'dateofbirth');
		$dateofbirthElement = $this->getElement('dateofbirth');
		$dateofbirthElement->setLabel('Date Of Birth:');
			
		$this->addElement('text', 'phone');
		$phoneElement = $this->getElement('phone');
		$phoneElement->setLabel('Phone:');
		
		$this->addElement('text', 'position');
		$positionElement = $this->getElement('position');
		$positionElement->setLabel('Position:');

		$this->addElement('submit', 'submit');
		$submitButton = $this->getElement('submit');
		$submitButton->setLabel('Create My Account!');
		$submitButton->setAttrib('class', 'button');
	}
}
?>